.sidebar {
  width: 280px;
  height: 100vh;
  background: #2c3e50;
  color: white;
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid #34495e;
  background: #34495e;
}

.sidebar-header h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: white;
}

.sidebar-nav {
  flex: 1;
  padding: 0;
}

.sidebar-item {
  width: 100%;
  padding: 16px 20px;
  border: none;
  background: none;
  color: #bdc3c7;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.sidebar-item:hover {
  background: #34495e;
  color: white;
}

.sidebar-item.active {
  background: #3498db;
  color: white;
  border-left-color: #2980b9;
  font-weight: 500;
}

.sidebar-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .sidebar {
    width: 250px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .sidebar-item {
    padding: 14px 16px;
  }
  
  .sidebar-header {
    padding: 20px 16px;
  }
} 